package com.ytc.pquery.mapper;

import com.ytc.pquery.model.AddToLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//职位的收藏
@Mapper
public interface AddToLikeMapper {

    //收藏
    void addToLike(AddToLike addToLike);
    //修改收藏
    void updateToLike(AddToLike addToLike);
    //查询单个
    AddToLike getAddToLike(@Param("positionId") Integer positionId,@Param("userId") Integer userId);

    //查询集合
    List<AddToLike> getAddToLikeList(@Param("userId") Integer userId);

}
